package com.gdut.simple.data.entity;

import com.google.gson.annotations.SerializedName;

public class Result<T> {

    @SerializedName("msg")
    private String message;
    @SerializedName(value = "result", alternate = {"newslist", "results"})
    private T result;
    @SerializedName("error_code")
    private int code;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Result{" +
                "message='" + message + '\'' +
                ", result=" + result +
                ", code=" + code +
                '}';
    }
}
